package com.hotel.domain.service.impl;

import com.hotel.domain.dao.SystemInfoMapper;
import com.hotel.domain.service.SystemInfoService;
import com.hotel.pojo.SystemInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SystemInfoServiceImpl implements SystemInfoService {

    @Autowired
    private SystemInfoMapper systemInfoMapper;

    @Override
    public SystemInfo getSystemInfo() {
        return systemInfoMapper.getSystemInfo();
    }

    @Override
    @Transactional
    public int updateSystemInfo(SystemInfo systemInfo) {
        return systemInfoMapper.updateSystemInfo(systemInfo);
    }

}
